package com.oracle.malldemo.service.impl;

import com.oracle.malldemo.dao.AddressDao;
import com.oracle.malldemo.dao.impl.AddressDaoImpl;
import com.oracle.malldemo.domain.Address;
import com.oracle.malldemo.service.AddressService;

import java.util.List;

public class AddressServiceImpl implements AddressService {

    private AddressDao addressDao = new AddressDaoImpl();
    @Override
    public boolean add(Address address) {
        return addressDao.add(address);
    }

    @Override
    public List<Address> queryAddressListByUid(Integer uid) {
        return addressDao.queryAddressListByUid(uid);
    }
}
